package com.bwie.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bwie.poi.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 军哥
 * @version 1.0
 * @description: 商品表实体类
 * @date 2024/10/16 14:25
 */

@Data
@TableName(value = "tb_prod")
public class TbProd implements Serializable {

    @TableId(type = IdType.AUTO)
    @Excel(name = "商品ID", width = 30)
    private Integer prodId;
    private Integer shopId;

    @Excel(name = "商品名称", width = 30)
    private String prodName;

    @Excel(name = "商品价格", width = 30)
    private Double prodPrice;

    @Excel(name = "商品库存", width = 30)
    private Integer prodCount;

    private Integer prodType;
    private String prodImage;

    /**
     * 产品状态：是否过期
     */
    private Integer prodStatus;

    /**
     * 商品上架：0未上架1已上架
     */
    private Integer prodOn;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "创建时间", width = 120)
    private Date createTime;
}
